package com.ruoyi.system.api.domain;

import java.sql.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 人员教育经历对象 sys_user_edu
 * 
 * @author ruoyi
 * @date 2023-02-11
 */
@ApiModel("人员教育经历")
public class SysUserEdu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long eduId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 学校 */
    @Excel(name = "学校")
    private String school;

    /** 学历 */
    @Excel(name = "学历")
    private Integer xl;

    /** 学位 */
    @Excel(name = "学位")
    private Integer xw;

    /** 专业 */
    @Excel(name = "专业")
    private String zy;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    public void setEduId(Long eduId)
    {
        this.eduId = eduId;
    }

    public Long getEduId()
    {
        return eduId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }
    public void setXl(Integer xl)
    {
        this.xl = xl;
    }

    public Integer getXl()
    {
        return xl;
    }
    public void setXw(Integer xw)
    {
        this.xw = xw;
    }

    public Integer getXw()
    {
        return xw;
    }
    public void setZy(String zy) 
    {
        this.zy = zy;
    }

    public String getZy() 
    {
        return zy;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("eduId", getEduId())
            .append("userId", getUserId())
            .append("school", getSchool())
            .append("xl", getXl())
            .append("xw", getXw())
            .append("zy", getZy())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .toString();
    }
}
